Use g_signal_connect_object for adjustments in GtkSpinButtonAccessible
authorMatthias Clasen <mclasen@redhat.com>
Mon, 21 Jan 2013 03:16:47 +0000 (22:16 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 21 Jan 2013 03:16:47 +0000 (22:16 -0500)
commit88ed5af5e444dcf8ca874fc9b8dfcf3fd35c5a03
tree7694a1bc7ba1c49a7693a5519b85115250041b71
parentcbce906228e580102c3917c77c5159a966da067c
Use g_signal_connect_object for adjustments in GtkSpinButtonAccessible

An instance of GtkAdjustment may be used by another instance after
the spin button widget is destroyed. In that case, the function
gtk_spin_button_accessible_value_changed() will be called with an
invalid argument. This situation is often caused when one use
GtkCellRendererSpin widget. To avoid invalid call of the function,
the signal handler for the "value-changed" signal should be disconnected
when the spin-button widget is destroyed.
Using g_signal_connect_object achieves just that.
https://bugzilla.gnome.org/show_bug.cgi?id=691592
gtk/a11y/gtkspinbuttonaccessible.c